package com.idheima.zuoye.zuoye3;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.IORuntimeException;

import java.io.File;

public class Test {
    public static void main(String[] args) {
        try {
            FileUtil.copy("D:\\java-base-ws\\JavaAdvanceProject\\day12_IO_zifuji\\src\\com\\idheima\\IO\\aikun.txt", "D:\\java-base-ws\\JavaAdvanceProject\\day12_IO_zifuji\\src\\com\\idheima\\IO\\aikun", true);

            System.out.println("复制成功");
        } catch (IORuntimeException e) {
            throw new RuntimeException(e);
        }
    }
}
